package com.itheima03;

public class Test {
    public static void main(String[] args) {
        Linked<String> s1 = new Linked<>();
        s1.add("hello");
        s1.add("worid");
        s1.add("java");
        System.out.println(s1);
        s1.updateFirst("javaee");
        s1.updateLast("javaSe");
        System.out.println(s1);
    }
}
